import request from '@/utils/request'

// 查询【请填写功能名称】列表
export function listManagement(query) {
  return request({
    url: '/system/storeManagement/list',
    method: 'get',
    params: query
  })
}

// 查询【请填写功能名称】详细
export function getManagement(storeManagementId) {
  return request({
    url: '/system/storeManagement/' + storeManagementId,
    method: 'get'
  })
}

// 新增【请填写功能名称】
export function addManagement(data) {
  return request({
    url: '/system/storeManagement',
    method: 'post',
    data: data
  })
}
// 上传
export function uploadImgs(data) {
  return request({
    url: '/system/storeManagement/uploadImgs',
    method: 'post',
    data: data
  })
}

// 修改【请填写功能名称】
export function updateManagement(data) {
  return request({
    url: '/system/storeManagement',
    method: 'put',
    data: data
  })
}

// 删除【请填写功能名称】
export function delManagement(storeManagementId) {
  return request({
    url: '/system/storeManagement/' + storeManagementId,
    method: 'delete'
  })
}

// 导出【请填写功能名称】
export function exportManagement(query) {
  return request({
    url: '/system/storeManagement/export',
    method: 'get',
    params: query
  })
}
